////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   ITEM_CATEGORY
// AUTHOR           :   Alex Cheung 
// DATE CREATE      :   2006/01/20
// DESCRIPTION      :   a CRITERIA file for the function, ITEM_CATEGORY
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/01/20   Alex Cheung     1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.catalog.itemCategory.criteria;

import com.erp.framework.model.criteria.SimplePageEditStyleSrchCriteria;

/**
* <p>A <strong>SrchCriteria</strong>
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the user search criteria input
* for database query.
*
* @author          Alex Cheung 
* @version 1.0     2006/01/20
* @since           FrameWork 1.0
*
*/

// Note:
// Currently only generates the first 5 fields of a table
// However, this number can be set in GenConstants.NO_CRITERIA

public class ItemCategorySrchCriteria extends SimplePageEditStyleSrchCriteria {

	//Searching Criteria Attributes (DB Table Name: T_ITEM_CATEGORY)
	private String srchCompanyCode;                  //DB Column Name: COMPANY_CODE
	private String srchStatus;                       //DB Column Name: STATUS
	private String srchItemLineFr;                   //DB Column Name: ITEM_LINE
	private String srchItemLineTo;                   //DB Column Name: ITEM_LINE
	private String srchItemCategoryFr;               //DB Column Name: ITEM_CATEGORY
	private String srchItemCategoryTo;               //DB Column Name: ITEM_CATEGORY
	private String srchItemCategoryDescFr;           //DB Column Name: ITEM_CATEGORY_DESC
	private String srchItemCategoryDescTo;           //DB Column Name: ITEM_CATEGORY_DESC

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {srchItemLineFr = " + this.srchItemLineFr
			+ "\n, srchItemLineTo = " + this.srchItemLineTo
			+ "\n, srchItemCategoryFr = " + this.srchItemCategoryFr
			+ "\n, srchItemCategoryTo = " + this.srchItemCategoryTo + "}\n";

		String colStr = "COL: {srchItemCategoryDescFr = " + this.srchItemCategoryDescFr
			+ "\n, srchItemCategoryDescTo = " + this.srchItemCategoryDescTo + "}\n";

		String mandatoryStr = "{srchCompanyCode = " + this.srchCompanyCode
			+ "\n, srchStatus = " + this.srchStatus
			+ "}\n";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchCompanyCode() {
		return this.srchCompanyCode;
	}

	public String getSrchStatus() {
		return this.srchStatus;
	}

	public String getSrchItemLineFr() {
		return this.srchItemLineFr;
	}

	public String getSrchItemLineTo() {
		return this.srchItemLineTo;
	}

	public String getSrchItemCategoryFr() {
		return this.srchItemCategoryFr;
	}

	public String getSrchItemCategoryTo() {
		return this.srchItemCategoryTo;
	}

	public String getSrchItemCategoryDescFr() {
		return this.srchItemCategoryDescFr;
	}

	public String getSrchItemCategoryDescTo() {
		return this.srchItemCategoryDescTo;
	}

	public void setSrchCompanyCode(String srchCompanyCode) {
		this.srchCompanyCode = srchCompanyCode;
	}

	public void setSrchStatus(String srchStatus) {
		this.srchStatus = srchStatus;
	}

	public void setSrchItemLineFr(String srchItemLineFr) {
		this.srchItemLineFr = srchItemLineFr;
	}

	public void setSrchItemLineTo(String srchItemLineTo) {
		this.srchItemLineTo = srchItemLineTo;
	}

	public void setSrchItemCategoryFr(String srchItemCategoryFr) {
		this.srchItemCategoryFr = srchItemCategoryFr;
	}

	public void setSrchItemCategoryTo(String srchItemCategoryTo) {
		this.srchItemCategoryTo = srchItemCategoryTo;
	}

	public void setSrchItemCategoryDescFr(String srchItemCategoryDescFr) {
		this.srchItemCategoryDescFr = srchItemCategoryDescFr;
	}

	public void setSrchItemCategoryDescTo(String srchItemCategoryDescTo) {
		this.srchItemCategoryDescTo = srchItemCategoryDescTo;
	}

}
